package com.it.domain;

public class User {

    private Long id;
    private String name;
    private String sex;
    private String adress;
    private String phone;

    public User() {

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAdress() {
        return adress;
    }

    public void setAdress(String adress) {
        this.adress = adress;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", adress='" + adress + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }

    public User(Long id, String name, String sex, String adress, String phone) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.adress = adress;
        this.phone = phone;
    }

    public void userLearn(String name){

        System.out.println(name + "会跳舞");
    }

    public User getUser(){
        User user = new User();
        user.setName("zhj");
        user.setId(1L);
        user.setAdress("zhj德甲");
        user.setPhone("123456");
        user.setSex("男");
        return user;
    }
}
